package com.yuke.cloud.service.uac.service.impl;

import com.yuke.cloud.service.api.uac.dto.SupplierApiDto;
import com.yuke.cloud.service.uac.dao.AccSupplierMapper;
import com.yuke.cloud.service.uac.entity.AccSupplier;
import com.yuke.cloud.service.uac.service.AccSupplierService;
import com.yuke.cloud.common.core.support.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by zn on 2020/10/06.
 */
@Service
@Transactional
public class AccSupplierServiceImpl extends BaseService<AccSupplier> implements AccSupplierService {
    @Resource
    private AccSupplierMapper accSupplierMapper;


    @Override
    public List<SupplierApiDto> findSupplierByIds(List<Long> ids) {
        List<SupplierApiDto> list = accSupplierMapper.findSupplierByIds(ids);
        return list;
    }

    @Override
    public List<AccSupplier> getSupplierList(){
        return  accSupplierMapper.getSupplierList();
    }

    @Override
    public List<SupplierApiDto> findSupplierByName(SupplierApiDto supplierApiDto) {
        return accSupplierMapper.findSupplierByName(supplierApiDto);
    }


}
